package com.mlk.engSystem.api;

import com.mlk.engSystem.constant.SystemParam;
import com.mlk.engSystem.service.EngSysParamService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RequestMapping("/api/system/Param")
@RestController
public class EngSysParamAPI {
    @Resource
    private EngSysParamService engSysParamService;

    @GetMapping("selectByValue")
    @ApiOperation("查询用户使用手册协议")
    public String selectByValue(){
        return engSysParamService.getValue(SystemParam.USER_PROTOCOL);
    }
}
